package com.yang.dto.req;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 新增商品类别请求参数
 */
@Data
@Schema(description = "商品类别请求参数")
public class CategorySaveReqDTO {

    @Schema(description = "商品类别名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "类别名称不能为空")
    private String categoryName;

    @Schema(description = "商品类别描述")
    @Size(max = 200, message = "类别描述最长200个字符")
    private String categoryInfo;

}
